aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cassettes/test_status_post[Content warning-None].yaml')
-rw-r--r--tests/cassettes/test_status_post[Content warning-None].yaml59
1 files changed, 59 insertions, 0 deletions
diff --git a/tests/cassettes/test_status_post[Content warning-None].yaml b/tests/cassettes/test_status_post[Content warning-None].yaml
new file mode 100644
index 0000000..24f3623
--- /dev/null
+++ b/tests/cassettes/test_status_post[Content warning-None].yaml
@@ -0,0 +1,59 @@
1interactions:
2- request:
3 body: status=Toot%21&spoiler_text=Content+warning
4 headers:
5 Accept: ['*/*']
6 Accept-Encoding: ['gzip, deflate']
7 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
8 Connection: [keep-alive]
9 Content-Length: ['43']
10 Content-Type: [application/x-www-form-urlencoded]
11 User-Agent: [python-requests/2.9.1]
12 method: POST
13 uri: http://localhost:3000/api/v1/statuses
14 response:
15 body: {string: '{"id":"99882190607950320","created_at":"2018-04-18T19:54:37.609Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":true,"spoiler_text":"Content
16 warning","visibility":"public","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/99882190607950320","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99882190607950320","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py
17 test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
18 Lennon","locked":true,"created_at":"2018-04-18T20:04:06.511Z","note":"\u003cp\u003eI
19 walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpg","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpg","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpg","followers_count":0,"following_count":0,"statuses_count":21},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'}
20 headers:
21 Cache-Control: ['max-age=0, private, must-revalidate']
22 Content-Type: [application/json; charset=utf-8]
23 ETag: [W/"ba7db43bf12e67c1c3b9890442fcb493"]
24 Transfer-Encoding: [chunked]
25 Vary: ['Accept-Encoding, Origin']
26 X-Content-Type-Options: [nosniff]
27 X-Frame-Options: [SAMEORIGIN]
28 X-Request-Id: [690e3732-e89a-4ecd-a6e1-fcc743ebdea6]
29 X-Runtime: ['0.192493']
30 X-XSS-Protection: [1; mode=block]
31 content-length: ['1411']
32 status: {code: 200, message: OK}
33- request:
34 body: null
35 headers:
36 Accept: ['*/*']
37 Accept-Encoding: ['gzip, deflate']
38 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
39 Connection: [keep-alive]
40 Content-Length: ['0']
41 User-Agent: [python-requests/2.9.1]
42 method: DELETE
43 uri: http://localhost:3000/api/v1/statuses/99882190607950320
44 response:
45 body: {string: '{}'}
46 headers:
47 Cache-Control: ['max-age=0, private, must-revalidate']
48 Content-Type: [application/json; charset=utf-8]
49 ETag: [W/"5c240765406390218ddc241e079f231b"]
50 Transfer-Encoding: [chunked]
51 Vary: ['Accept-Encoding, Origin']
52 X-Content-Type-Options: [nosniff]
53 X-Frame-Options: [SAMEORIGIN]
54 X-Request-Id: [ac4b24ac-6234-4e4f-a4a8-1c2b68479f75]
55 X-Runtime: ['0.059247']
56 X-XSS-Protection: [1; mode=block]
57 content-length: ['2']
58 status: {code: 200, message: OK}
59version: 1
Powered by cgit v1.2.3 (git 2.41.0)